<%= start_form_tag :action => 'search' %>
<!--[form:note]-->
<label for="q">Search for: </label><input type=text id="query" name="q" value="<%= @query %>"> <br/>
<%= submit_tag 'Search' %>
<!--[eoform:note]-->
<%= end_form_tag %>

